package com.xq.service;

import com.xq.entity.UmsUsers;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xq.entity.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wuven
 * @since 2025-05-21
 */
public interface IUmsUsersService extends IService<UmsUsers> {

    public UmsUsers getUserByUsername(String username);

    public UmsUsers getUserByPhone(String phone);

    void setPhone(String phone);

    int setUserAndPassword( UmsUsers user);

    /**
     * 在不知道传入的是手机号，还是电话号的情况下来查看用户存不存在
     */
    UmsUsers findUserUnknown(String usernameOrPhone);

}
